package com.sixth.controller;

import com.sixth.service.BusCarService;
import com.sixth.util.TableLayUi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: carrent
 * @description:
 * @author: 老魏
 * @create: 2022-01-14 17:16
 * 汽车出租页面
 **/
@RestController
@RequestMapping("/rent")
@ResponseBody
public class BusCarController {
    @Autowired
    private BusCarService busCarService;
    //展示全部加跟据身份证号查询
    @RequestMapping("/listByCondition")
    public TableLayUi listByCondition(int page, int limit , String identity){
        return  busCarService.listByCondition(page,limit,identity);
    }
}
